using UnityEngine;
using UnityEngine.Events;

namespace ScriptableObject
{
    [CreateAssetMenu(menuName = "Event/FloatEventSO")]
    public class FloatEventSO : UnityEngine.ScriptableObject
    {
        public UnityAction<float> OnEventRaised;

        public void RaiseEvent(float amount)
        {
            OnEventRaised?.Invoke(amount);
        }
    }
}